<!-- 继承公共视图文件 -->
<extend name="./Application/Admin/View/layout.html" />
 <!-- 可变内容区域 -->
 <block name="mid">

	<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h2><i class="fa fa-table red"></i><span class="break"></span><strong>广告列表</strong></h2>
				<div class="panel-actions">
					<a href="{:U('Admin/banner/add')}"  style="padding-right:12px;"><i class="fa fa-plus"></i>添加广告</a>
					<a href="{:U('Admin/banner/add_point')}"  style="padding-right:12px;"><i class="fa fa-plus"></i>添加广告位置</a>
					<a href="table.html#" class="btn-setting"><i class="fa fa-rotate-right"></i></a>
					<a href="table.html#" class="btn-minimize"><i class="fa fa-chevron-up"></i></a>
					<a href="table.html#" class="btn-close"><i class="fa fa-times"></i></a>
				</div>

			</div>
			<div class="panel-body">
				<table class="table table-striped table-bordered bootstrap-datatable datatable">
				  <thead>
					  <tr>
						  <th width="50">ID</th>
						  <th>广告名称</th>
	                      <th width="300">图片</th>
	                      <th>链接</th>
	                      <th>显示</th>
						  <th>排序</th>
						  <th>所属广告位</th>
						  <th>操作</th>
					  </tr>
				  </thead>
				  <tbody>
				    <foreach name="list" key="k" item="v" >
						<tr>
							<td>{$v.id}</td>
							<td>{$v.b_name}</td>
							<td><img src="__ROOT__/{$v.img}" width="300" height="80"></td>
							<td>{$v.http}</td>
	                        <td>{$v['is_show']?'是':'否'}</td>
	                        <td>{$v.sort}</td>
	                        <td>{$v.banner_point.name}</td>
							<td>
								<a class="btn btn-success" href="table.html#">
									<i class="fa fa-search-plus "></i>
								</a>
								<a class="btn btn-info" href="{:U('Admin/admin/edit/id/'.$v['id'])}">
									<i class="fa fa-edit "></i>
								</a>
								<a class="btn btn-danger" href="{:U('Admin/admin/del/id/'.$v['id'])}">
									<i class="fa fa-trash-o "></i>

								</a>
							</td>
						</tr>
	                </foreach>
				  </tbody>
			  </table>
	            <!-- 分页 -->
	            <ul class="pagination">
					<!-- <li><a href="table.html#">Prev</a></li>
					<li class="active">
					  <a href="table.html#">1</a>
					</li>
					<li><a href="table.html#">2</a></li>
					<li><a href="table.html#">3</a></li>
					<li><a href="table.html#">4</a></li>
					<li><a href="table.html#">5</a></li>
					<li><a href="table.html#">Next</a></li> -->
					{$page}
				</ul>
			</div>
		</div>
	</div><!--/col-->

	</div>


</block>